package com.energy.analysis.basic.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.energy.analysis.basic.entity.StationData;
import com.energy.analysis.basic.mapper.StationMapper;
import com.energy.analysis.comm.base.BaseMapper;
import com.energy.analysis.comm.base.BaseService;

@Service
public class StationService extends BaseService<StationData> {

	@Autowired
	private StationMapper stationMapper;
	
	@Override
	public BaseMapper<StationData> getMapper() {
		return stationMapper;
	}
	
	public StationData getStationDataById(int id) {
		return stationMapper.getStationDataById(id);
	}
	
	public boolean updateStationData(StationData stationData) {
		return stationMapper.updateStationData(stationData) > 0;
	}
	
	public List<StationData> getStationData() {
		return stationMapper.getStationData();
	}
	
	
}
